#pragma once
#include <string>
#include"comLib\global.h"
extern "C"
{
#include "libavcodec/avcodec.h"
#include "libavformat/avformat.h"
#include "libavdevice/avdevice.h"
};
using namespace std;

class RPCFW_EXPORT CInputDevices
{
public:
	CInputDevices();
	bool init();
	void listDevices(AVFormatContext **pFmtCtx);
	string getDevicesName();
	AVFormatContext *getFormatContext();
private:
	string deviceName;
	AVFormatContext *pFormatCtx;
};
